﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>综合治税GIS管理平台</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="~/Content/Styles/style.css" type="text/css">
    <!-- 框架必要 -->
    <script src="~/Content/Scripts/jquery/jquery-1.8.2.min.js"></script>
    <script src="~/Content/Scripts/learunui-framework.js"></script>
    <script src="~/Content/Scripts/Zor_AJax.js"></script>
    <!-- 消息提示 -->
    <script src='~/Content/layer/layer.js'></script>
    <script>
        //登录
        $(function () {
            $("#btnLogin").click(function () {
                var resultData = GetWebControls(divLogin);  //获取界面的值
                ZorPostSimpleData("/Home/LoginPost", JSON.stringify({ "us": resultData }), function (data) {
                    if (data.Success)
                        $("<a>").attr("href", "/Home/AccordionIndex").hide().appendTo("body")[0].click();
                    else
                        layer.msg(data.Message);
                });
            })
        })

        //修改用户密码
        function changeUserPasswWord() {
            LayerOpen('900px', '650px', '修改密码', $('#ModalchangeUserPasswWord'));
        }
    </script>


</head>
<body>
    <div id="ModalchangeUserPasswWord" hidden data-backdrop="static">
        <div id="divfrom" class="layui-tab-content">
            <div class="layui-form-item">
                <label class="col-sm-3    layui-form-label">用户密码：</label>
                <div class="col-sm-9">
                    <input id="oldPassword" type="password" class="form-control" placeholder="请输入当前密码">
                </div>             
            </div>
            <div class="layui-form-item">
                <label class="col-sm-3    layui-form-label">用户新密码：</label>
                <div class="col-sm-9">
                    <input id="newPassword" type="password" class="form-control" placeholder="请输入新密码">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="col-sm-3    layui-form-label">确认新密码：</label>
                <div class="col-sm-9">
                    <input id="newPassword" type="password" class="form-control" placeholder="请再次输入新密码">
                </div>
            </div>
        </div>
    </div>  
            <!--登录-->
            @using (Html.BeginForm("Index", "Home", new RouteValueDictionary { }, FormMethod.Get))
            {
                <div id="box">
                    <div id="logo"><img src="~/Content/Images/logo.png" width="539" height="74" style="text-align:center;" /></div>
                    <div id="divLogin" onkeyup="keyLogin();">
                        <div id="userLogin"><img src="~/Content/Images/user-login.png" width="194" height="36" /></div>
                        <div id="login">
                            <div id="left"><img src="~/Content/Images/yaoshi.png" width="115" height="128" /></div>
                            <div id="right">
                                <div class="field ph-hide">
                                    <label for="TPL_username_1">用户名：</label>
                                    <input id="User_Name" name="username" class="login-text J_UserName" value="@Request.QueryString["username"]" placeholder="   用户名" required="" type="text">
                                </div>
                                <div class="field">
                                    <label id="password-label">密　码：</label>
                                    <input id="User_Pass" name="password" class="login-text J_UserName" value="@Request.QueryString["password"]" placeholder="    密码" required="" type="password">

                                </div>
                            </div>
                        </div>
                        <div id="bottom">  <button id="btnLogin" type="submit" class="J_Submit" tabindex="5">登&nbsp;录</button></div>
                        @if (ViewBag.Success.ToString() == "Failure")
                        {
                            <span class="danger"> @ViewBag.Message </span>
                        }<div id="floor">&nbsp;</div>
                    </div>

                </div>

            }
            @* <div style=" position: fixed; bottom: 0;width: 100%; text-align: center;}">
                    问题反馈：2919076171@qq.com
                </div>*@

</body>
</html>
